babl: move BABL_ALPHA_FLOOR to public babl header
authorØyvind Kolås <pippin@gimp.org>
Sun, 26 Aug 2018 21:19:35 +0000 (23:19 +0200)
committerØyvind Kolås <pippin@gimp.org>
Sun, 26 Aug 2018 21:19:35 +0000 (23:19 +0200)
babl/babl.h
babl/base/util.h

index 2e0735d2f6102610b912aeefcd184d37706b3fb7..5a7ca7e946e9c663c45285339bbfe24b2305a3dc 100644 (file)
@@ -584,6 +584,12 @@ babl_space_from_rgbxyz_matrix (const char *name,
  */
 const char * babl_format_get_encoding (const Babl *babl);
 
+/* values below this are stored premultiplied with this value,
+ * it can also be used as a generic alpha zero epsilon in GEGL
+ *
+ */
+#define BABL_ALPHA_FLOOR (1/65536.0)
+
 #ifdef __cplusplus
 }
 #endif
index 4d9f536aee19241d8dd6e6fd5ceaa636b319d13b..b16840e2b466fd40e7b5e506501a680b1a1e635b 100644 (file)
@@ -30,8 +30,6 @@
  */
 #define BABL_ALPHA_THRESHOLD 0.000000152590219
 
- /* values below this are stored premultiplied with this value  */
-#define BABL_ALPHA_FLOOR (1/65536.0)
 
 #define BABL_PLANAR_SANITY  \
   {                         \